<!-- Begin isets/new_report.tpl -->
<form method="post" action="?module=isets&action=new_report&setid={$smarty.get.setid}" enctype="multipart/form-data">

{opentable}
{titlebar colspan=2 title="$title"}


<tr>
<td class="sectiontableentry2" width="30%" align="right" valign="middle"><span class="required">*</span> {$lg->duration}</td>
<td class="sectiontableentry1" width="70%">
<select name="duration" value="{$smarty.post.duration}">
<option value="">(select)</option>
{if is_array($durations)}
{foreach from=$durations key=did item=duration}
<option value="{$did}">{$duration}</option>
{/foreach}
{/if}
</select>
</td>
</tr>


<tr>
<td class="sectiontableentry2" width="20%" align="right" valign="middle"><span class="required">*</span>{$lg->mode}</td>
<td class="sectiontableentry1" width="80%">
<input type="radio" name="remote" value="t" />{$lg->mode_remote}&nbsp;
<input type="radio" name="remote" value="f" />{$lg->mode_local}&nbsp;
</td>
</tr>

<tr>
<td class="sectiontableentry2" width="20%" align="right" valign="top">{$lg->notify} {$lg->managers}</td>
<td class="sectiontableentry1" width="80%">
<select name="notify[]" size="5" multiple="multiple">
{if is_array($managers)}
{foreach from=$managers key=userid item=username}
<option value="{$userid}">{$username}</option>
{/foreach}
{/if}
</select>
</td>
</tr>

{if is_manager($smarty.session.userid)}
<tr>
<td class="sectiontableentry2" width="20%" align="right" valign="middle">{$lg->is_invoice} </td>
<td class="sectiontableentry1" width="80%"><input type="checkbox" name="invoice" checked /></td>
</tr>
{/if}

<tr>
<td class="sectiontableentry2" width="30%" align="right" valign="middle">{$lg->attach_file} </td>
<td class="sectiontableentry1" width="70%"><input type="file" name="upload" /></td>
</tr>


<tr>
<td class="sectiontableentry2" width="20%" align="right" valign="middle">{$lg->private} </td>
<td class="sectiontableentry1" width="80%"><input type="checkbox" name="private" checked /></td>
</tr>

<tr class="titlebar">
<td><input type="submit" name="create" class="button" value={$lg->save}  /></td>
<td><input type="submit" name="cancel" class="button" value={$lg->cancel}  /></td>
</tr>
<input type="hidden" name="issueid" value={$issueid} /></td>
</table>

<div style="text-align: left; margin: 4px;"><span class="required">*</span> {$lg->required_fields} </div>

</form>

</table>


<!-- End isets/new_report.tpl -->